<?php $post_id = 'C' . $comment['comment_id']; ?>
<div class="message" id="comment_<?php echo $comment['comment_id']; ?>" style="display: none;">
  <a href="<?php echo base_url('profile/' . $comment['user_name']); ?>"><img title="<?php echo $comment['user_display_name']; ?>" src="<?php echo base_url('assets/photos/' . $comment['user_image']); ?>" class="img-rounded pull-left" style="max-height: 60px; max-width: 60px;"/></a>
  <div class="message-body">
    <p class="pull-right">
      <a id="<?php echo $post_id; ?>"style="text-decoration: none; cursor: pointer; color: salmon;" href="#<?php echo $post_id; ?>">&nbsp;&nbsp;#<?php echo $post_id; ?></a>
    </p>
    <p class="pull-right">&nbsp;(<?php echo time_ago($comment['comment_date']); ?> ago)</p>
    <p class="pull-right"><a title="Ignore post | <?php echo get_ignore_count('comment', $comment['comment_id']); ?> ignores !" style="text-decoration: none; cursor: pointer; color: yellowgreen;" id="ignore_comment_<?php echo $comment['comment_id']; ?>" onclick="return ignore_post('comment', '<?php echo $comment['comment_id']; ?>');"><i class="icon-large icon-flag"></i></a>&nbsp;</p>
    <?php if (($this->current_user['user_id'] == $comment['user_id']) || ($this->is_admin)) { ?>
      <a onclick="return delete_comment('<?php echo $comment['comment_id']; ?>');" style="text-decoration: none; cursor: pointer;" title="Delete comment">
        <span style="color: #f8b9b7; float: right; margin-right: 10px;"><i class="icon-large icon-trash"></i></span>
      </a>
    <?php } ?>
    <?php if ($this->current_user['user_id'] != $comment['user_id']) { ?>
      <a onclick="return reply_to_user('comment_message', '<?php echo $comment['user_name']; ?>', '#<?php echo $post_id; ?>');" style="text-decoration: none; cursor: pointer;" title="Reply to this user"><span style="color: skyblue; float: right; margin-right: 10px;"><i class="icon-large icon-retweet"></i></span></a>
    <?php } ?>
    <span style="float: right; margin-right: 10px;">
      <?php $get_user_like_status = get_user_like_status('comment', $comment['comment_id']); ?>
      <?php if ($get_user_like_status['status'] == 'yes') { ?>
        <a title="Unlike" style="text-decoration: none; cursor: pointer; color: yellowgreen;" id="like_button_comment_<?php echo $comment['comment_id']; ?>" onclick="return do_like_action('comment', '<?php echo $comment['comment_id']; ?>', '0');"><i class="icon-large icon-thumbs-down"></i></a>
      <?php } else { ?>
        <a title="Like" style="text-decoration: none; cursor: pointer; color: yellowgreen;" id="like_button_comment_<?php echo $comment['comment_id']; ?>" onclick="return do_like_action('comment', '<?php echo $comment['comment_id']; ?>', '1');"><i class="icon-large icon-thumbs-up"></i></a>
      <?php } ?>
    </span>
    <a class="update_like_count" title="Show users who like this" onclick="return show_liked_users('comment', '<?php echo $comment['comment_id']; ?>');" style="text-decoration: none; color: #777; float: right; margin-right: 10px; cursor: pointer;" id="like_count_comment_<?php echo $comment['comment_id']; ?>"><?php echo $get_user_like_status['total_count']; ?> Likes</a>
    <h5>
      <?php echo $comment['user_display_name']; ?>
      &nbsp;
      <span style="color: #777; font-size: smaller;">(@<?php echo $comment['user_name']; ?>)</span>
      &nbsp;
      <?php if (is_online($comment['user_id'])) { ?>
        <img src="<?php echo site_url('assets/img/online_button_tiny.png'); ?>" title="Online"/>
      <?php } else { ?>
        <img src="<?php echo site_url('assets/img/offline_button_tiny.png'); ?>" title="Offline"/>
      <?php } ?>
    </h5>
    <p style="word-break: normal;"><?php echo nl2br(parse_smileys($comment['comment_message'], base_url('assets/smileys'))); ?></p>
  </div>
</div>